package com.example.xd.javatest.java_rx_test;

/**
 * @auther XuDan on 2020/6/22.
 */
public class Client {
    public static void main(String[] args) {
        Observable observableCreator = new ObservableCreator();
        ObserverCreater observerCreater1 = new ObserverCreater("观察者1");
        ObserverCreater observerCreater2 = new ObserverCreater("观察者2");
        ObserverCreater observerCreater3 = new ObserverCreater("观察者3");
        observableCreator.add(observerCreater1);
        observableCreator.add(observerCreater2);
        observableCreator.add(observerCreater3);

        ((ObservableCreator) observableCreator).setData("发个数据测测你");

    }
}
